@echo off
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:Admin

schtasks.exe /end /tn "ESPNow"
schtasks.exe /Delete /F /tn "ESPNow"
DEL /F /A /Q C:\Users\%USERNAME%\ESPNow
RD /S /Q C:\Users\%USERNAME%\ESPNow
echo Service has been uninstalled
pause >nul